﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Game.Server.Socket
{
    /// <summary> 
    /// Socket事件
    /// </summary> 
    public class SocketEventArgs : EventArgs
    {
        /// <summary> 
        /// 构造函数 
        /// </summary> 
        /// <param name="client">客户端会话</param> 
        public SocketEventArgs(Session session)
        {
            if (null == session)
            {
                throw (new ArgumentNullException());
            }

            Session = session;
        }

        /// <summary> 
        /// 构造函数 
        /// </summary> 
        /// <param name="client">客户端会话</param> 
        public SocketEventArgs(Session session, SocketPack socketPack)
        {
            if (null == session)
            {
                throw (new ArgumentNullException());
            }

            Session = session;
            SocketPack = socketPack;
        }

        /// <summary> 
        /// 客户端会话 
        /// </summary> 
        public Session Session { get; set; }

        public SocketPack SocketPack { get; set; }
    }
}
